<div class="tags results view">
<h2><?php __('TAG'); ?>:&nbsp;<?php e($tag['Tag']['name']); ?></h2>

<?php if(!empty($data)): ?>
    <?php foreach($data as $value): ?>
        <?php foreach($value as $model=>$item): ?>
            <div class="item <?php e(low($model)); ?>">
            <?php
                $method = 'generate'.$model;
                $item['model'] = $model;
                if(method_exists($taggable, $method)){
                    echo call_user_func(array($taggable, $method), $item);
                }
            ?>
            </div>
        <?php endforeach; ?>
    <?php endforeach; ?>
<?php endif; ?>

<?php //debug($data); debug($tag); ?>
</div>